package wujinye.com.controller.dept;

import wujinye.com.controller.BaseServlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/dept/*")
public class DeptServlet extends BaseServlet {

    /**
     * department页面请求
     * @param req
     * @param resp
     */
    public void departmentList(HttpServletRequest req, HttpServletResponse resp){
        try {
            resp.sendRedirect(req.getContextPath()+"/view/showDepartmentList");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
